package net.sunofbeach.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.sunofbeach.blog.pojo.Label;
import net.sunofbeach.blog.pojo.query.LabelQuery;
import net.sunofbeach.blog.response.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Bing
 * @since 2021-11-24
 */
public interface LabelService extends IService<Label> {

    /**
     * 条件分页查询标签
     * @param pageParam
     * @param labelQuery
     * @return
     */
    IPage<Label> selectPage(Page<Label> pageParam, LabelQuery labelQuery);

    /**
     * 获取标签云
     * @param size
     * @return
     */
    Result listLabels(int size);
}
